<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * @version $Id: edit_form_prediction_settings.tpl.php 1126 2008-06-09 05:45:04Z julienv $
 * @package Joomleague
 * @copyright Copyright (C) 2007  JoomLeague
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see _joomleague_license.txt
 *  
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 * 
 * This file is part of JoomLeague.
 *  
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/ 

?>

<script language="javascript" type="text/javascript">
    function submitbutton(pressbutton) {
            var form = document.adminForm;
     if (pressbutton == 'cancel') {
     			  submitform( pressbutton );
      		  return;
            }
            // do field validation
            if (form.name.value == ""){
             alert( "<?php echo _JL_ADMIN_EDIT_FORM_CLUBS_JS_CHECK;?>" );
           }
            else {
                submitform( pressbutton );
            }
    }
</script>

<form action="index2.php" method="post" name="adminForm">
<div id="right">
	<div id="rightpad">

<!-- Header START -->		
		<div id="step">
			<div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m" align="left">			
				<div class="far-right">
							<div class="button1-left"><div class="help"><a href="http://www.joomleague.de" alt="<?php echo _JL_ADMIN_MANUAL;?>" title="<?php echo _JL_ADMIN_MANUAL;?>" target="blank"><?php echo _JL_ADMIN_MANUAL;?></a></div></div>
							<div class="button1-left"><div class="forum"><a href="http://www.joomleague.de/forum/" alt="<?php echo _JL_ADMIN_FORUM;?>" title="<?php echo _JL_ADMIN_FORUM;?>" target="blank"><?php echo _JL_ADMIN_FORUM;?></a></div></div>
							<div class="button1-left"><div class="about"><a href="http://www.joomleague.de" alt="<?php echo _JL_ADMIN_INFO;?>" title="<?php echo _JL_ADMIN_INFO;?>" target="blank"><?php echo _JL_ADMIN_INFO;?></a></div></div>
				</div>
				<div class="button1-left"><div class="blank"><a href="index2.php?option=com_joomleague"></a></div></div><span class="step"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TITLE5.' - '.$settings_name;?></span>
			</div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
<!-- Header END -->     

    <div id="installer">
    
<!-- Title 1 START -->     
			<div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m" align="left">
				<h2><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TITLE5;?></h2>
<!-- Titel 1 END -->

<!-- Content 1 START -->			
				<div class="install-text">
	<table cellpadding="4" cellspacing="1" border="0" width="100%" class="adminform">
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_MODE;?></td>
      <td align="left"><?php echo mosHTML::yesnoSelectList( 'mode', 'class="inputbox" size="1"', $prediction_setting->mode , $yes = "Toto", $no="Tipp" )?></td>
    </tr>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_OVERVIEW;?></td>
      <td align="left"><?php echo mosHTML::yesnoSelectList( 'overview', 'class="inputbox" size="1"', $prediction_setting->overview , $yes=_JL_ADMIN_EDIT_FORM_PROJECTS_TIP_OVERVIEW_YES, $no=_JL_ADMIN_EDIT_FORM_PROJECTS_TIP_OVERVIEW_NO )?></td>
    </tr>
<script language="javascript" type="text/javascript">
    function FormSwitchJoker(action) {
		document.adminForm.tip_points_correct_result_joker.disabled=action;
		document.adminForm.tip_points_correct_diff_joker.disabled=action;
		document.adminForm.tip_points_correct_draw_joker.disabled=action;
		document.adminForm.tip_points_correct_tendence_joker.disabled=action;
		document.adminForm.tip_points_tip_joker.disabled=action;
    }
</script>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_JOKER;?></td>
	    <td><input type="radio" name="tip_joker" id="tip_joker0" value="0" <?php
	    if ($prediction_setting->tip_joker==0) echo 'checked="checked"' ?>  onclick="javascript:FormSwitchJoker(true)" >
			<label for="tip_joker0"><?php echo _CMN_NO ?></label>
			<input type="radio" name="tip_joker" id="tip_joker1" value="1" <?php
			if ($prediction_setting->tip_joker==1) echo 'checked="checked"' ?> onclick="javascript:FormSwitchJoker(false)" />
			<label for="tip_joker1"><?php echo _CMN_YES ?></label>
    	</td>
  	</tr>    
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CALCULATION;?></td>
      <td align="left"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_WITHOUT_JOKER;?></td>
      <td align="left"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_WITH_JOKER;?></td>
    </tr>        
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CORRECT_RESULT;?></td>
      <td align="left"><input type="text" name="tip_points_correct_result" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_result;?>"</td>
      <td align="left"><input type="text" name="tip_points_correct_result_joker" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_result_joker;?>" <?php
      if ($prediction_setting->tip_joker == 0) echo 'DISABLED ' ?>/</td>      
    </tr>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CORRECT_DIFF;?></td>
      <td align="left"><input type="text" name="tip_points_correct_diff" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_diff;?>"</td>
      <td align="left"><input type="text" name="tip_points_correct_diff_joker" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_diff_joker;?>" <?php
      if ($prediction_setting->tip_joker == 0) echo 'DISABLED ' ?>/</td>      
    </tr>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CORRECT_DRAW;?></td>
      <td align="left"><input type="text" name="tip_points_correct_draw" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_draw;?>"</td>
      <td align="left"><input type="text" name="tip_points_correct_draw_joker" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_draw_joker;?>" <?php
      if ($prediction_setting->tip_joker == 0) echo 'DISABLED ' ?>/</td>
    </tr>    
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CORRECT_TENDENCE;?></td>
      <td align="left"><input type="text" name="tip_points_correct_tendence" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_tendence;?>"</td>
      <td align="left"><input type="text" name="tip_points_correct_tendence_joker" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_correct_tendence_joker;?>" <?php
      if ($prediction_setting->tip_joker == 0) echo 'DISABLED ' ?>/</td>
    </tr>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_WRONG_TIP;?></td>
      <td align="left"><input type="text" name="tip_points_tip" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_tip;?>"</td>
      <td align="left"><input type="text" name="tip_points_tip_joker" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_tip_joker;?>" <?php
      if ($prediction_setting->tip_joker == 0) echo 'DISABLED ' ?>/</td>
    </tr>
<script language="javascript" type="text/javascript">
    function FormSwitchJokerLimit(action) {
		document.adminForm.tip_joker_limit.disabled=action;
    }
</script>    
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_JOKER_LIMIT_SELECT;?></td>
	    <td><input type="radio" name="tip_joker_limit_select" id="tip_joker_limit_select0" value="0" <?php
	    if ($prediction_setting->tip_joker_limit==0) echo 'checked="checked"' ?>  onclick="javascript:FormSwitchJokerLimit(true)" >
			<label for="tip_joker_limit_select0"><?php echo _CMN_NO ?></label>
			<input type="radio" name="tip_joker_limit_select" id="tip_joker_limit_select1" value="1" <?php
			if ($prediction_setting->tip_joker_limit>0) echo 'checked="checked"' ?> onclick="javascript:FormSwitchJokerLimit(false)" />
			<label for="tip_joker_limit_select1"><?php echo _CMN_YES ?></label>
    	</td>
  	</tr>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_JOKER_LIMIT;?></td>
      <td align="left"><input type="text" name="tip_joker_limit" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_joker_limit;?>" <?php
      if ($prediction_setting->tip_joker_limit == 0) echo 'DISABLED ' ?>/</td>
    </tr>    
<script language="javascript" type="text/javascript">
    function FormSwitchChamptip(action) {
		document.adminForm.tip_points_tip_champ.disabled=action;
    }
</script>    
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CHAMP;?></td>
	    <td><input type="radio" name="tip_champ" id="tip_champ0" value="0" <?php
	    if ($prediction_setting->tip_champ==0) echo 'checked="checked"' ?>  onclick="javascript:FormSwitchChamptip(true)" >
			<label for="tip_champ0"><?php echo _CMN_NO ?></label>
			<input type="radio" name="tip_champ" id="tip_champ1" value="1" <?php
			if ($prediction_setting->tip_champ==1) echo 'checked="checked"' ?> onclick="javascript:FormSwitchChamptip(false)" />
			<label for="tip_champ1"><?php echo _CMN_YES ?></label>
    	</td>
  	</tr>
    <tr>
      <td width="50%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PROJECTS_TIP_CHAMP_POINTS;?></td>
      <td align="left"><input type="text" name="tip_points_tip_champ" size="5" class="inputbox" value="<?php
      echo $prediction_setting->tip_points_tip_champ;?>" <?php
      if ($prediction_setting->tip_champ == 0) echo 'DISABLED ' ?>/</td>
    </tr>    
  </table>
				</div>
<!-- Content 1 END -->				

<!-- Info 1 START -->
				<div class="install-body" style="width:250px;">
    			<div class="t">
            <div class="t">
              <div class="t"></div>
            </div>
          </div>
          <div class="m">
						<fieldset>
							<table class="content">
							<tr>
								<td><?php echo _JL_ADMIN_EDIT_FORM_CLUBS_HINT1;?>
								</td>
							</tr>
							</table>
						</fieldset>

					</div>
          <div class="b">
            <div class="b">
              <div class="b"></div>
            </div>
          </div>
					<div class="clr"></div>
				</div>
<!-- Info 1 END -->
				

        <div class="newsection"></div>
        <div class="clr"></div>
      </div>

      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
		</div>
	</div>
</div>
<div class="clr"></div>
  <input type="hidden" name="sid" value="<?php echo $prediction_setting->id; ?>" />
  <input type="hidden" name="option" value="<?php echo JL_OPTION;?>" />
  <input type="hidden" name="act" value="<?php echo JL_ACTION;?>" />
<input type="hidden" name="adminmode" value="<?php echo JL_ADMIN_MODE;?>" />
  <input type="hidden" name="task" value="" />
</form>
